#include "UITreeWidgetItem.h"
#include <WndBase.h>
CUITreeWidgetItem::CUITreeWidgetItem(void):m_pCurWnd(NULL)
{
}

CUITreeWidgetItem::~CUITreeWidgetItem(void)
{
	if( m_pCurWnd )
	{
		m_pCurWnd->Destroy();
	}
}

void CUITreeWidgetItem::SetWndBase( CWndBase* pWnd )
{
	m_pCurWnd = pWnd;
}

CWndBase* CUITreeWidgetItem::GetWndBase()
{
	return m_pCurWnd;
}